package com.jianganming.strategy.pay;

public enum PayEnum {
    AliPay("阿里支付",new AliPay()),
    JdPay("京东支付",new JDPay()),
    UnionPay("银联支付",new UnionPay()),
    WechatPay("微信支付",new WechatPay())
    ;

    private String name;
    private Payment payment;

    PayEnum(String name, Payment payment) {
        this.name = name;
        this.payment = payment;
    }

    public String getName() {
        return name;
    }

    public Payment getPayment() {
        return payment;
    }
}
